<link rel="stylesheet" href="../addons/jy_h5game/resource/css/rank.css?v=2019">
<div class="fui-page fui-page-current page-rank" style="overflow:auto;">
        <div class="fui-header">
            <div class="fui-header-left">
                <a class="back" href="javascript:history.back();"></a>
            </div>
			<div class="title">我的奖品</div>
            <div class="fui-header-right">&nbsp;</div>
        </div>
        <div class='fui-content'>
			<div id="tab" class="fui-tab fui-tab-danger">
				<a class="external" href="javascript:;" ng-click="access_json(pagedata.rank)">积分榜</a>
				<a class="external active" href="javascript:;" ng-click="access()">我的奖品</a>
				<a class="external" href="javascript:;" ng-click="access_json('core/member.credit_log/')">积分记录</a>
				<a class="external" href="javascript:;" ng-click="access_json(pagedata.info)">个人资料</a>
			</div>
		<div class="rankline" style="padding:0">
			<div class="left"></div>
			<div class="right"></div>
			<div class="center"></div>
		</div>
		<div class="ranklist">
			<div class="main">
				<div class="line title">
					<div class="col">等级</div>										
					<div class="col">奖品名</div>					
					<div class="col" ng-if="pagedata.show == 1">红包</div>
					<div class="col" ng-if="pagedata.show != 1">兑换码</div>
					<div class="col" style="width:5rem"><a class="label label-primary">操作</a></div>	
				</div>
				 <div class="line" ng-repeat='row in pagedata.myaward'>
				  <div class="col">{{row.awardLevel}}</div>
					 <div class="col index-1 overflow-h" style="text-align:center;">{{row.award}}</div>
					 <div class="col index-1 overflow-h" ng-if="pagedata.show == 1">{{row.awardhb}}</div>
					 <div class="col index-1 overflow-h" ng-if="pagedata.show != 1">{{row.code1}}</div>
					 <div id="button" class="col ui-block-b" style="width:3rem;padding:0 0.3rem">
						<a ng-if="row.awardstatus==0 && row.prizeType!=1" class="label label-primary" id="data_submit" ng-click="post(row,'/myaward/post/id='+row.id)">申请兑换</a>
						<a ng-if="row.awardstatus==0 && row.prizeType==1" class="label label-primary" id="data_submit" ng-click="pagedata.showzhuan=true;pagedata.itemid=row.id">申请兑换</a>
						<a ng-if="row.awardstatus==1" class="label label-default">已兑换</a>
					</div>
				 </div>
				<div id="container" ></div>
			</div>
		</div>
</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行转账《兑换实物》操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收件人" ng-model="pagedata.post.ausername"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-mobilephone"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收件人" ng-model="pagedata.post.aphone"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-ditu"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收货地址" ng-model="pagedata.post.address"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'/myaward/post/id='+pagedata.itemid)">确认兑换</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/_footer')"></div>
<div ng-include="sys_html('common/pluginnav',true)"></div>